/**
 * 
 */
package pl.edu.agh.to;

import java.util.List;

/**
 * @author karulis
 * 
 */
public interface IDBAccess {

	public List<Object> getParticipants(String Course);

	public List<Object> getCourses(String Participant);

	public Course getCourse(String name);

	public List<Object> getAllCourses();

	public List<Object> getAllParticipants();

	public List<Object> getRates(String Participant, String Course);

	public List<Object> getScheduleFor(String day);

	public void addSchedule(ScheduleItem scheduleItem);

	public void removeCourse(String courseName);

	public void addCourse(Course course);

	public void addParticipant(Participant participant);

	public void removeParticipant(String name);

	public Participant getParticipant(String name);

	void addParticipantToCourse(String participant, String course);

	void updateParticipant(Participant oldParticipant,
			Participant newParticipant);

	void updateCourse(Course course, Course course2);

	void removeParticipantFromCourse(String participant, String course);

	void addRate(String participant, String course, Rate rate);

	void removeRate(String participant, String course, Rate rate);

	void removeSchedule(ScheduleItem scheduleItem);
}
